/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cms.entity;

import java.util.Date;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 合并任务描述Entity
 * @author leo
 * @version 2017-02-20
 */
public class TaskGroup extends DataEntity<TaskGroup> {
	
	private static final long serialVersionUID = 1L;
	private int id;
	private String userid;		// 用户id
	private String opdesc;		// 工序
	private String jcdeptid; //
	
	private String alltaskdesc;		// 任务合并描述
	private Integer allcount;		// 记录数
	private boolean isstart;		// 是否开始
	private boolean istaskcomplete;		// 是否完工
	private Date pdate;
	
	
	public TaskGroup() {
		super();
	}

	public TaskGroup(String id){
		super(id);
	}

	
	
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Length(min=0, max=100, message="工序长度必须介于 0 和 100 之间")
	public String getOpdesc() {
		return opdesc;
	}

	public void setOpdesc(String opdesc) {
		this.opdesc = opdesc;
	}
	
	@Length(min=0, max=1000, message="任务合并描述长度必须介于 0 和 1000 之间")
	public String getAlltaskdesc() {
		return alltaskdesc;
	}

	public void setAlltaskdesc(String alltaskdesc) {
		this.alltaskdesc = alltaskdesc;
	}
	
	@Length(min=0, max=11, message="记录数长度必须介于 0 和 11 之间")
	public Integer getAllcount() {
		return allcount;
	}

	public void setAllcount(Integer allcount) {
		this.allcount = allcount;
	}
	
	@Length(min=0, max=4, message="是否开始长度必须介于 0 和 4 之间")
	public boolean getIsstart() {
		return isstart;
	}

	public void setIsstart(boolean isstart) {
		this.isstart = isstart;
	}
	
	@Length(min=0, max=4, message="是否完工长度必须介于 0 和 4 之间")
	public boolean getIstaskcomplete() {
		return istaskcomplete;
	}

	public void setIstaskcomplete(boolean istaskcomplete) {
		this.istaskcomplete = istaskcomplete;
	}
	
	@Override
	public String getId() {
		if(id != 0){
		 return String.valueOf(id);
		}else{
			return super.id;
		}
	}
//
//	public int getId() {
//		return id;
//	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getPdate() {
		return pdate;
	}

	public void setPdate(Date pdate) {
		this.pdate = pdate;
	}
	public String getJcdeptid() {
		return jcdeptid;
	}

	public void setJcdeptid(String jcdeptid) {
		this.jcdeptid = jcdeptid;
	}
}